package com.example.wishstar.model;


import java.time.LocalDate;

public class NewMemory {
    public int memoryId;
    public int userId;
    public String memoryTitle;
    public int type;
    public int isRepeat;
    public LocalDate memoryDate;

    public NewMemory(int memoryId, int userId, String memoryTitle, int type, int isRepeat, LocalDate memoryDate) {
        this.memoryId = memoryId;
        this.userId = userId;
        this.memoryTitle = memoryTitle;
        this.type = type;
        this.isRepeat = isRepeat;
        this.memoryDate = memoryDate;
    }

    public NewMemory(int userId, LocalDate memoryDate) {
        this.userId = userId;
        this.memoryDate = memoryDate;
    }

    public int getMemoryId() {
        return memoryId;
    }

    public void setMemoryId(int memoryId) {
        this.memoryId = memoryId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getMemoryTitle() {
        return memoryTitle;
    }

    public void setMemoryTitle(String memoryTitle) {
        this.memoryTitle = memoryTitle;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getIsRepeat() {
        return isRepeat;
    }

    public void setIsRepeat(int isRepeat) {
        this.isRepeat = isRepeat;
    }

    public LocalDate getMemoryDate() {
        return memoryDate;
    }

    public void setMemoryDate(LocalDate memoryDate) {
        this.memoryDate = memoryDate;
    }

    @Override
    public String toString() {
        return "NewMemory{" +
                "memoryId=" + memoryId +
                ", userId=" + userId +
                ", memoryTitle='" + memoryTitle + '\'' +
                ", type=" + type +
                ", isRepeat=" + isRepeat +
                ", memoryDate=" + memoryDate +
                '}';
    }
}
